/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cm.java.jpa.inicial;

import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;

@Entity
@SecondaryTables({
    @SecondaryTable(name = "cidade"),
    @SecondaryTable(name = "paises")
})
public class Endereco {
    @Id
    private Long id;
    private String rua1;
    private String rua2;
    @Column(table="cidade")
    private String cidade;
    @Column(table="cidade")
    private String estado;
    @Column(table="cidade")
    private String cep;
    @Column(table="paises")
    private String país;
    
    }
